package com.jzr.medical.db1.model;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.jzr.medical.common.LayEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 病人表
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TPatient对象", description="病人表")
public class TPatient extends LayEntity<Integer> {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_patient";
    public static final String Id_ = "id";
    public static final String Code_ = "code";
    public static final String CureNo_ = "cure_no";
    public static final String Name_ = "name";
    public static final String DistrictCode_ = "district_code";
    public static final String DeptCode_ = "dept_code";
    public static final String RoomCode_ = "room_code";
    public static final String BedCode_ = "bed_code";
    public static final String NurseLevelCode_ = "nurse_level_code";
    public static final String OutlayType_ = "outlay_type";
    public static final String Sex_ = "sex";
    public static final String Age_ = "age";
    public static final String Marriage_ = "marriage";
    public static final String Birthday_ = "birthday";
    public static final String PcaCode_ = "pca_code";
    public static final String Address_ = "address";
    public static final String Mobile_ = "mobile";
    public static final String Education_ = "education";
    public static final String Duties_ = "duties";
    public static final String IdNumber_ = "id_number";
    public static final String Height_ = "height";
    public static final String Weight_ = "weight";
    public static final String AreaCode_ = "area_code";
    public static final String CustomInfusionRule_ = "custom_infusion_rule";
    public static final String RunStatus_ = "run_status";
    public static final String BeginTime_ = "begin_time";
    public static final String EndTime_ = "end_time";
    public static final String InTime_ = "in_time";
    public static final String OutTime_ = "out_time";
    public static final String Sort_ = "sort";
    public static final String Status_ = "status";
    public static final String Nation_ = "nation";
    public static final String Remark_ = "remark";
    public static final String Diagnose_ = "diagnose";
    public static final String Allergy_ = "allergy";
    public static final String DoctorCode_ = "doctor_code";
    public static final String NurseCode_ = "nurse_code";
    public static final String Guardian_ = "guardian";
    public static final String SocialSecurityNo_ = "social_security_no";
    public static final String SkinTest_ = "skin_test";
    public static final String SevereCare_ = "severe_care";
    public static final String OperatorCode_ = "operator_code";
    public static final String OperatorTime_ = "operator_time";
    public static final String Diet_ = "diet";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";
    public static final String IsDel_ = "is_del";


    @ApiModelProperty(value = "病人ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "病人代码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "住院号")
    @TableField("cure_no")
    private String cureNo;

    @ApiModelProperty(value = "病人姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "病区号")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty(value = "科室号")
    @TableField("dept_code")
    private String deptCode;

    @ApiModelProperty(value = "病房号")
    @TableField("room_code")
    private String roomCode;

    @ApiModelProperty(value = "床号")
    @TableField("bed_code")
    private String bedCode;

    @ApiModelProperty(value = "护理级别代码")
    @TableField("nurse_level_code")
    private String nurseLevelCode;

    @ApiModelProperty(value = "费用类型(1=医保、2=自费、3=新农合)")
    @TableField("outlay_type")
    private String outlayType;

    @ApiModelProperty(value = "性别（0-未知、1-男、2-女、9-未说明）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private String age;

    @ApiModelProperty(value = "婚姻情况(0-未婚、1-已婚、2-丧偶、3-离异、4-未知)")
    @TableField("marriage")
    private Integer marriage;

    @ApiModelProperty(value = "出生日期")
    @TableField("birthday")
    private LocalDate birthday;

    @ApiModelProperty(value = "行政区代码")
    @TableField("pca_code")
    private Integer pcaCode;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "手机号码")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "学历")
    @TableField("education")
    private String education;

    @ApiModelProperty(value = "社会机构及职务")
    @TableField("duties")
    private String duties;

    @ApiModelProperty(value = "证件号码")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value = "身高")
    @TableField("height")
    private BigDecimal height;

    @ApiModelProperty(value = "体重")
    @TableField("weight")
    private BigDecimal weight;

    @ApiModelProperty(value = "区域")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty(value = "使用自定义输液规则,0=不启用,1=启用")
    @TableField("custom_infusion_rule")
    private Integer customInfusionRule;

    @ApiModelProperty(value = "执行状态 0未输液  1正在输液 2输液结束")
    @TableField("run_status")
    private Integer runStatus;

    @ApiModelProperty(value = "开始执行时间")
    @TableField("begin_time")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束执行时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "入院时间")
    @TableField("in_time")
    private LocalDateTime inTime;

    @ApiModelProperty(value = "出院时间")
    @TableField("out_time")
    private LocalDateTime outTime;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "住院状态：1入院 2转院 3出院")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "民族")
    @TableField("nation")
    private String nation;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "入院诊断")
    @TableField("diagnose")
    private String diagnose;

    @ApiModelProperty(value = "过敏类型")
    @TableField("allergy")
    private String allergy;

    @ApiModelProperty(value = "医生ID")
    @TableField("doctor_code")
    private String doctorCode;

    @ApiModelProperty(value = "护士ID")
    @TableField("nurse_code")
    private String nurseCode;

    @ApiModelProperty(value = "监护人")
    @TableField("guardian")
    private String guardian;

    @ApiModelProperty(value = "社保号")
    @TableField("social_security_no")
    private String socialSecurityNo;

    @ApiModelProperty(value = "皮试信息")
    @TableField("skin_test")
    private String skinTest;

    @ApiModelProperty(value = "重症监护")
    @TableField("severe_care")
    private Boolean severeCare;

    @ApiModelProperty(value = "操作人")
    @TableField("operator_code")
    private String operatorCode;

    @ApiModelProperty(value = "操作时间")
    @TableField("operator_time")
    private LocalDateTime operatorTime;

    @ApiModelProperty(value = "饮食")
    @TableField("diet")
    private String diet;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "删除标记")
    @TableField("is_del")
    private Boolean isDel;


}
